package com.example.resturant.repository;

import com.example.resturant.model.OrderMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMenuRepository extends JpaRepository<OrderMenu, Integer>, JpaSpecificationExecutor<OrderMenu> {

    List<OrderMenu> findByOrderIdIn(List<Integer> orderIds);
}
